﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataModel
{
    public class MaterialObject
    {
        public string ObjectName { get; set; }
        public string BelongedCategoryName { get; set; }
        public string Unit { get; set; }
        public int CheckProperty { get; set; }
        public float Stock { get; set; }
        public int ID { get; set; }

        public MaterialObject(string materialName, string catName, string unit,int checkPro)
        {
            this.ObjectName = materialName;
            this.BelongedCategoryName = catName;
            this.Unit = unit;
            this.CheckProperty = checkPro;
            this.Stock = 0.0f;
        }


        public MaterialObject(string materialName, string catName, string unit)
        {
            this.ObjectName = materialName;
            this.BelongedCategoryName = catName;
            this.Unit = unit;
            this.Stock = 0.0f;
        }

        public MaterialObject(string materialName, string catName)
        {
            this.ObjectName = materialName;
            this.BelongedCategoryName = catName;
            this.Unit = string.Empty;
            this.Stock = 0.0f;
        }
        public MaterialObject()
        {
            this.ObjectName = string.Empty;
            this.BelongedCategoryName = string.Empty;
            this.Unit = string.Empty;
            this.Stock = 0.0f;
        }
    }
}
